package net.csdn.business.common.annotation;

import net.csdn.business.common.enums.ActionTypeEnum;

import java.lang.annotation.*;

/**
 * @Desc: 操作日志自定义注解
 * @ClassName: OperationLogAspect
 * @Author: zhangyl
 * @Date: 2022/8/2 18:04
 */
@Target({ElementType.TYPE, ElementType.METHOD})
@Retention(RetentionPolicy.RUNTIME)
@Documented
@Inherited
public @interface BusinessLog {
    //操作动作枚举
    ActionTypeEnum action() default ActionTypeEnum.OTHER;
    /**
     *用于复合接口-多种类型的操作写在一个接口里，直接传acntion的value去区分具体的action
     */
    String actionValue() default "";
    //相关项目
    String relatedId() default "";
}